package com.jic.order.api;

import com.alibaba.fastjson.JSONObject;
import com.jic.common.base.vo.RestResult;
import com.jic.order.manage.response.base.ChannelResponseApi;
import com.jic.order.request.base.CardCouponPlatformRequest;
import com.jic.order.request.base.OrderCouponPlatformRequest;
import com.jic.order.request.base.OrderSyncRequest;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * name要调用的服务,这里相当于声明http地址, 比如预下单:http://.../feign/pay/prePayOrder
 */
    @FeignClient(name = "jic-interaction", path = "/card")
    public interface CardOrderApi {

    @PostMapping("/addCardCouponPlatform")
    @ApiOperation(value = "采购商下单", notes = "采购商下单。")
    public RestResult<?> addCardCouponPlatform(@RequestBody CardCouponPlatformRequest cardCouponPlatformRequest);

    @ApiOperation(value = "订单信息", notes = "订单信息。")
    @PostMapping("/getCardCouponPlatform")
    public RestResult<?> getCardCouponPlatform(@RequestBody OrderCouponPlatformRequest cardCouponPlatformRequest);

}
